const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 跨域问题
  devServer: {
    proxy: {
      '/api': {
        target: 'http://124.223.9.151:7000/', //后端接口地址
        changeOrigin: true, //是否允许跨域
        pathRewrite: {
          '^/api': ''  //重写
        }
      }
    }

  }
})
